<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<script>
    var Student = {
        name:"zhangdongwei",
        age:20,
        run:function () {
            console.log(this.name + " run....");
        }
    };
    var xiaoming = {
        name:"xiaoming",
    };

    var bird = {
        fly:function (){
            console.log(this.name + " fly....")
        }
    }

    // 原型对象
    // xiaoming.__proto__ = Student;
    xiaoming.__proto__ = bird;
</script>

</body>
</html>